<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //大整形  用来进行更大的数值运算
        // let n = 521n
        // console.log(n, typeof(n));//521n "bigint"

        //函数 把普通函数的值转换为大整形的值
        let n = 123
        console.log(BigInt(n));//123n


        //大数值运算
        let max = Number.MAX_SAFE_INTEGER
        console.log(max);
        console.log(max + 1);
        console.log(max + 2);

        console.log(BigInt(max));
        console.log(BigInt(max) + BigInt(1));
        console.log(BigInt(max) + BigInt(2));


    </script>
</body>
</html>